package web;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import server.ConpendiumRepository;
import server.InventoryRepository;

import model.Conpendium;
import model.Inventory;

@Path("/rest/army")
public class ArmyController
{
	private final ConpendiumRepository conpendiumRepository = new ConpendiumRepository();
	private final InventoryRepository inventoryRepository = new InventoryRepository();
	
	@GET
	@Produces({MediaType.APPLICATION_JSON})
	@Path("/createTroop/{conpendiumID}")
	public Inventory createTroop(@PathParam("conpendiumID") Long conpendiumID)
	{
		Conpendium conpendium = conpendiumRepository.getById(conpendiumID);
		
		return null;
	}
}
